/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cn.edu.nju.software.AtoB;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

import cn.edu.nju.software.AtoClient.ConsumerBeans;

/**
 *
 * @author zf
 */
public class AgentImp extends UnicastRemoteObject implements Agent{

    
    protected AgentImp() throws RemoteException {
		super();
	}//必须写出构造方法来抛出异常


 
   

    public ConsumerIntf getConsumer(String address,String deliverMethod) throws RemoteException {
        ConsumerIntf consumer = new ConsumerImp();
        consumer.setConsumer(address, deliverMethod);
        return consumer;
    }

  




    }



